﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GlobalSetting.aspx.cs"
    Inherits="WMS6.Web.Administration.GlobalSetting" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>GlobalSetting</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" id="js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <base target="_self" />

    <script type="text/javascript">
     
           //初始化页面
        window.onload = function(){
            var actionID = window.dialogArguments;
            if(actionID != "" && actionID != null)
            {
                document.getElementById("hdnActionID").value = actionID;
                var array = actionID.split(',');
                initQueryPage(array[0],array[1]);
            }
            else
            {
                initQueryPage();
            }
            }
      
    </script>

</head>
<body>
    <form id="F1085" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblGlobalSetting" runat="server" CssClass="label_header" Text="全局设置"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div id="div_List">
                    <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                    <asp:GridView ID="gvGlobalSetting" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="gvGlobalSetting_RowCancelingEdit"
                        CssClass="gridview" AllowSorting="True" OnRowDataBound="gvGlobalSetting_RowDataBound" OnRowEditing="gvGlobalSetting_RowEditing" OnRowUpdating="gvGlobalSetting_RowUpdating"
                        DataKeyNames="GlobalSettingID">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="TemplateField">
                                <HeaderTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvGlobalSetting');"
                                        meta:resourcekey="CheckBox1" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvGlobalSetting');"
                                        meta:resourcekey="CheckBox2" />
                                </FooterTemplate>
                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40" />
                            </asp:TemplateField>
                             <asp:TemplateField FooterText="设置代码" HeaderText="设置代码">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtGlobalSettingID" runat="server" Height="20px" Enabled="false" Text='<%# Eval("GlobalSettingID").ToString() %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                                <ItemTemplate>
                                    <asp:Label ID="lblGlobalSettingID" runat="server"  Text='<%# Eval("GlobalSettingID").ToString() %>'
                                       ></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="描述" HeaderText="描述">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtDescr" runat="server" Height="20px" Text='<%# Eval("DESCR").ToString() %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                                <ItemTemplate>
                                    <asp:Label ID="lblDescr" runat="server" Text='<%# Eval("DESCR").ToString() %>' ToolTip='<%# Eval("DESCR").ToString() %>'
                                        meta:resourcekey="lblSkuDescr"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="值" HeaderText="值">
                                <EditItemTemplate>
                                    <asp:TextBox ID="txtValue" runat="server" Height="20px" Text='<%# Eval("VALUE").ToString() %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemStyle HorizontalAlign="Left" VerticalAlign="Middle" />
                                <ItemTemplate>
                                    <asp:Label ID="lblValue" runat="server" Text='<%# Eval("VALUE").ToString() %>' meta:resourcekey="lblSkuDescr"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="编辑" ShowHeader="False">
                                <EditItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" CommandName="Update"
                                        Text="更新"></asp:LinkButton>
                                    <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" CommandName="Cancel"
                                        Text="取消"></asp:LinkButton>
                                </EditItemTemplate>
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" CommandName="Edit"
                                        Text="编辑"></asp:LinkButton>
                                </ItemTemplate>
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                   <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                </div>
                <input type="hidden" id="hdnFrom" runat="server">
                    <input id="hdnActionID" runat="server" type="hidden"></input>
                    <input id="hdnRtnValue" runat="server" type="hidden"></input>
                </input>
                </input> </input>
            </ContentTemplate>
        </asp:UpdatePanel>
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <a id="A1" runat="server" onserverclick="CacheRemove">释放系统缓存</a>  <a href="SqlQuery.aspx" target="_self">Sql Analytics</a>    <a href="ScriptCreated.aspx" target="_self">系统脚本创建</a>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
